package ch03_oothinking.finaluse;

/**
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
public class ABLevel {
    public static void main(String[] args) {
        B b = new B();
        b.getName();
    }

    static class A {
        private final void getName() {
            System.out.println("getName - A");
        }
    }

    static class B extends A {
        public void getName() {
            System.out.println("getName - B");
        }
    }

}
